package cn.com.bluemoon.daps.standard.dto;

import cn.com.bluemoon.daps.standard.vo.BasicStandardFormVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author Jarod.Kong
 * @date 2020/8/6 11:58
 */
@ApiModel(description = "基础标准列表分页查询条件")
@Data
public class StandardQueryDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主题id")
    private String topicId;

    @ApiModelProperty(value = "分类一")
    private String category1;

    @ApiModelProperty(value = "分类二")
    private String category2;

    @ApiModelProperty(value = "分类三")
    private String category3;

    @ApiModelProperty(value = "关键字,查询标准中英文名称")
    @Size(max = 100, message = "关键字不可大于{max}")
    private String keyword;

    @ApiModelProperty("部门id")
    private String departmentId;

    @ApiModelProperty("指标类型,  1原子指标、2派生指标、3计算指标、-1则全部，默认为-1")
    private Integer indexType = -1;

    @ApiModelProperty("业务线id 默认为-1全部，其他对应所选id")
    private Integer bizLineId = -1;

    public StandardQueryDto(){
    }
    public StandardQueryDto(BasicStandardFormVo vo){
        BeanUtils.copyProperties(vo, this);
    }
}
